<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
        // 逻辑运算符 &&与(并且)  ||或  !非

        var num = 3 >2 && 3 > 1
        console.log(num); // true 两个条件都满足才返回true

        var str = 5 > 4 || 5 < 2
        console.log(str); // true 有一个条件满足就返回true
    </script>
</body>
</html>